//
//  OfflineRemittanceFootView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/27.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "OfflineRemittanceFootView.h"

@implementation OfflineRemittanceFootView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        GLGWButton * remittanceSureBut = [[GLGWButton alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(20), KScreenWidth - kHeightProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(44)) hTitle:@"汇款确认" titleLableFont:SYSTEMFONT(16) titleLableColor:[UIColor whiteColor] theCornerRadius:kHeightProportion_In_iPhoneTriploid(22) backgroundColr:kColor_Rule_Yellow inSuperView:self];
        [remittanceSureBut addTarget:self action:@selector(paySuccectAction) forControlEvents:UIControlEventTouchUpInside];
        //
        GLGWLabel * miaoshuLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        miaoshuLabel.numberOfLines = 0;
        miaoshuLabel.attributedText = [GLGWLabel changeLineWithSpace:8 theInoutText:@"注意事项\n1、汇款时需要注意以上信息，请牢记！ \n2、请及时付清款项，30分钟内未支付订单将被自动取消。 \n3、付款时请将汇款识别码写入备注中，感谢配合"];
        [miaoshuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(remittanceSureBut.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(15));
            make.right.equalTo(self.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
        }];
        
    }
    return self;
}

-(void)paySuccectAction{
    if (self.Block_payAtcion) {
        self.Block_payAtcion();
    }
}

@end
